<?php

namespace app\controller\v1\api;

use app\service\UserMoneyService;
use app\BaseController;
use app\common\Send;
use think\App;
use think\Request;
class UserMoney extends BaseController
{
    use Send;
    protected $userMoneyService;
    public function __construct(App $app,UserMoneyService $userMoneyService){
        parent::__construct($app);
        $this->userMoneyService = $userMoneyService;
    }

    public function index(Request $request)
    {
        $params = $request->param();
        $result = $this->userMoneyService->apiList($params);
        return self::success($result);
    }
}
